package com.mark.service;

import com.mark.entity.school.UGradeSubjectRelation;
import java.util.List;

/**
 * (UGradeSubjectRelation)表服务接口
 *
 * @author Deng PengFei
 * @since 2021-10-27 11:17:10
 */
public interface UGradeSubjectRelationService {

    /**
     * 通过ID查询单条数据
     *
     * @param relId 主键
     * @return 实例对象
     */
    UGradeSubjectRelation queryById(Object relId);

    /**
     * 查询多条数据
     *
     * @param offset 查询起始位置
     * @param limit 查询条数
     * @return 对象列表
     */
    List<UGradeSubjectRelation> queryAllByLimit(int offset, int limit);

    /**
     * 新增数据
     *
     * @param uGradeSubjectRelation 实例对象
     * @return 实例对象
     */
    UGradeSubjectRelation insert(UGradeSubjectRelation uGradeSubjectRelation);

    /**
     * 修改数据
     *
     * @param uGradeSubjectRelation 实例对象
     * @return 实例对象
     */
    UGradeSubjectRelation update(UGradeSubjectRelation uGradeSubjectRelation);

    /**
     * 通过主键删除数据
     *
     * @param relId 主键
     * @return 是否成功
     */
    boolean deleteById(Object relId);

}